package com.nbufe.strategy.demo2;

/**
 * @Author Zan
 * @Create 2024/5/20 8:13
 * @ClassName: TravelStrategy
 * @Description : TODO 请用一句话描述该类的功能
 */
public abstract class TravelStrategy {

    // 人数
    int number;

    abstract double calculate(int nums, int hours);

    public double calculate() {
        return calculate(0, 0);
    }

    public void setNumber(int number) {
        this.number = number;
    }
}
